#include"MergeSort.h"
#include"SelectionSort.h"
#include"QuickSort.h"

void main()
{
	int chon;
	
	do{
		cout<< "\n--------------------MENU--------------------"<<endl;

		cout<< "1/ SelectionSort.\n2/ QuickSort.\n3/ MergeSort.\n4/ HeepSort.\n5/ Thoat."<<endl;
		cout<< "--------------------------------------------"<<endl;
		cout<< "\nChon chuc nang muon thuc hien: ";
		cin >> chon;
		if(chon < 1 || chon > 5)
			cout<<"Ban nhap sai. Moi ban nhap lai."<<endl;
		else
			switch (chon)
		{
			case 1:
				{
					SelectionSort a;
					a.Selection_Sort();
					cout<<"Mang sau khi sap xep: ";
					a.Xuat();
					break;
				}
			case 2:
				{
					QuickSort a;
					a.Quick_Sort();
					cout<<"Mang sau khi sap xep: ";
					a.Xuat();
					break;
				}
			case 3:
				{
					MergeSort a;
					a.Merge();
					cout<<"Mang sau khi sap xep: ";
					a.Xuat();
					break;
				}
			default:
				break;
		}
	}  while(chon != 5);
}